package com.jo.advisor;

import java.lang.reflect.Method;

/**
 * 切面方法前的advise，参考spring，可能因为某种原因未实现MethodInterceptor，
 * 会通过BeforeMethodAdapter适配成MethodInterceptor
 * @author Jo
 * @date 2018/1/25
 */
public class AspectBeforeAdvice extends AbstractAdvice implements MethodBeforeAdvice {
    public AspectBeforeAdvice(Method adviceMethod, Object aspectObj) {
        super(adviceMethod, aspectObj);
    }

    @Override
    public void before(Method method, Object[] args, Object target) {
        invokeAdviceMethod();
    }
}
